import request from '@/utils/request'

// 代账公司导入
export function importAccountingData(data, customerId) {
  return request({
    url: `/customer/generator/bizcustomeragent/importData/${customerId}`,
    method: 'post',
    data
  })
}

// 代账公司子公司导出
export function outPutAccountingExcel(data) {
  return request({
    url: '/customer/generator/bizcustomeragent/outPutExcel',
    method: 'post',
    data
  })
}

//代账子公司列表
export function getAccountingList(data) {
  return request({
    url: '/customer/generator/bizcustomeragent/list',
    method: 'post',
    data
  })
}

//代账公司更新
export function saveAccountingInfo(data) {
  return request({
    url: '/customer/generator/bizcustomeragent/saveInfo',
    method: 'post',
    data
  })
}

//代账公司删除
export function deleteAccounting(params) {
  return request({
    url: '/customer/generator/bizcustomeragent/delete',
    method: 'delete',
    params
  })
}

//代账公司交易信息
export function getCustomerShareMsg(customerId) {
  return request({
    url: '/customer/generator/bizcustomeragent/getShareMsg/' + customerId,
    method: 'post'
  })
}
